import javax.swing.JLabel;


public class Score extends JLabel{
	public Score(){
		this.setText("Score: 0");
		score = 0;
	}
	public Score(int i){
		score = i;
		this.setText("Score: "+String.valueOf(score));
	}
	
	public void misMatch(){
		score += 2;
		setText("Score: "+String.valueOf(score));
	}
	public void match(){
		score -= 2;
		setText("Score: "+String.valueOf(score));
	}
	
	public String toString(){
		return "score=\"" + String.valueOf(score) + "\"";
	}
	
	
	private int score;
	
}
